//
//  CJCommissionRankCell.m
//  Boss
//
//  Created by admin on 2018/9/12.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "CJCommissionRankCell.h"
@interface CJCommissionRankCell()

@property (strong, nonatomic) IBOutlet UIView *circleView;
@property (strong, nonatomic) IBOutlet UIImageView *userImageView;
@property (strong, nonatomic) IBOutlet UILabel *userName;
@property (strong, nonatomic) IBOutlet UILabel *clickCount;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@property (strong, nonatomic) IBOutlet UIImageView *vipImageView;

@end
@implementation CJCommissionRankCell
-(void)setModel:(CJCommissionModel *)model
{
    _model = model;
    
     [self.vipImageView showVipImageViewStatusWithVipId:model.vipId];
    self.userName.text = model.userName;
    self.clickCount.text = [NSString stringWithFormat:@"已获得%@次点击",model.totalClick];
    self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.profitAmount.floatValue/1000.0];
    
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:model.userPhoto]];
    
}



- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.circleView setCornerRadius:9.f];
    [self.userImageView setCornerRadius:20.f];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
